# Set merchant receipt text

Sets the thank-you message and return/refund policy printed on email, hosted and PDF receipts. Each field is optional: omit it to keep the current value, or send null to clear it.

Endpoint: PUT /v1/merchants/{merchant_id}/receipt_settings
Version: v1
Security: api-key-secret

## Security:

  - `api-key-secret` (unknown)
    http basic

## Path parameters:

  - `merchant_id` (string, required)
    Merchant ID.

## Request fields (application/json):

  - `custom_message` (string | null)
    Custom thank-you message shown on receipts. Send null to clear.
    Example: Thank you for shopping with us!

  - `return_refund_policy` (string | null)
    Return/refund policy shown on receipts. Send null to clear.
    Example: Returns accepted within 30 days with receipt.

## Response 200:

  - `200` (unknown)
    The receipt settings after the update.

## Response 200 fields (application/json):

  - `custom_message` (string | null, required)
    Custom thank-you message shown on receipts. Null when unset.
    Example: Thank you for shopping with us!

  - `return_refund_policy` (string | null, required)
    Return/refund policy shown on receipts. Null when unset.
    Example: Returns accepted within 30 days with receipt.

## Response 400:

  - `400` (unknown)
    The request is invalid.

## Response 400 fields (application/json):

  - `status_code` (number, required)
    HTTP status code of the response.
    Example: 400

  - `message` (any, required)
    What went wrong. A request that fails validation lists one message per invalid field.
    Example: Device IMEI '357111112222333' is not available to be used.

  - `error` (string, required)
    Error code. A broken business rule returns a stable SCREAMING_SNAKE_CASE code to branch on; other failures return a generic name such as `NotFoundException`.
    Example: DEVICE_IMEI_ALREADY_BOUND

  - `details` (object)
    Extra context some business-rule errors carry.

  - `debug_id` (string)
    Reference for this request, also sent in the `X-Debug-Id` header. Quote it when contacting support.
    Example: dbg_01k8x2v9j3m4n5p6q7r8s9t0vw

  - `timestamp` (string, required)
    When the error occurred.
    Example: 2026-01-15T10:30:00.000Z

## Response 401:

  - `401` (unknown)
    Missing or invalid credentials.

## Response 401 fields (application/json):

  - `status_code` (number, required)
    HTTP status code of the response.
    Example: 400

  - `message` (any, required)
    What went wrong. A request that fails validation lists one message per invalid field.
    Example: Device IMEI '357111112222333' is not available to be used.

  - `error` (string, required)
    Error code. A broken business rule returns a stable SCREAMING_SNAKE_CASE code to branch on; other failures return a generic name such as `NotFoundException`.
    Example: DEVICE_IMEI_ALREADY_BOUND

  - `details` (object)
    Extra context some business-rule errors carry.

  - `debug_id` (string)
    Reference for this request, also sent in the `X-Debug-Id` header. Quote it when contacting support.
    Example: dbg_01k8x2v9j3m4n5p6q7r8s9t0vw

  - `timestamp` (string, required)
    When the error occurred.
    Example: 2026-01-15T10:30:00.000Z

## Response 404:

  - `404` (unknown)
    Merchant not found for this account.

## Response 404 fields (application/json):

  - `status_code` (number, required)
    HTTP status code of the response.
    Example: 400

  - `message` (any, required)
    What went wrong. A request that fails validation lists one message per invalid field.
    Example: Device IMEI '357111112222333' is not available to be used.

  - `error` (string, required)
    Error code. A broken business rule returns a stable SCREAMING_SNAKE_CASE code to branch on; other failures return a generic name such as `NotFoundException`.
    Example: DEVICE_IMEI_ALREADY_BOUND

  - `details` (object)
    Extra context some business-rule errors carry.

  - `debug_id` (string)
    Reference for this request, also sent in the `X-Debug-Id` header. Quote it when contacting support.
    Example: dbg_01k8x2v9j3m4n5p6q7r8s9t0vw

  - `timestamp` (string, required)
    When the error occurred.
    Example: 2026-01-15T10:30:00.000Z

